package exe;

public class D9 {

	public static void main(String[] args) {
		int c = 0;
		for (int a = 1; a <= 10000; a++) {
			if (a % 9 == 0) {
				System.out.print(a + " ");
				c++;
				if (c % 20 == 0)
					System.out.println();
			}
		}

	}

}
